package OopInterfaceLian;

//因为现在我不想让外界直接创建人的对象
//因为此时直接创建顶层父类人的对象无意义
//所以就把此类写成抽象
public abstract class Preson {
    private String name;
    private int age;

    public Preson() {
    }

    public Preson(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

}
